<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:39:"./views/home/mobile/invite/remark.phtml";i:1627629214;s:71:"/www/wwwroot/10.168.1.202/public/views/home/mobile/common/ufooter.phtml";i:1625675066;}*/ ?>
<!DOCTYPE HTML>
<html style="height:100%">
<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>邀请好友</title>
    <link href="/static/home/mobile/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/mobile/css/new_style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" href="/static/home/mobile/css/geren.css">
    <link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/home/mobile/css/facaeincon.css">
    <link rel="stylesheet" href="/static/plugins/dialog/css/dialog.css" />
    <script src="/static/home/mobile/js/jquery-2.0.3.min.js"></script>
    <script src="/static/plugins/dialog/js/dialog.js"></script>
    <script type="text/javascript" src="/static/plugins/clipboard.min.js"></script>
    <script type="text/javascript" src="/static/home/mobile/js/global.js"></script>
    <script src="/static/home/mobile/js/mui.min.js"></script>
        <script src="/static/home/mobile/js/jsbridge-mini.js"></script>
    <style type="text/css">
        body {
            font: 12px/20px "微软雅黑", "SimSun", "宋体", "Arial Narrow", HELVETICA;
            overflow-x: hidden;
            background: #0f0f0f;
            width: auto;
            height: 100%;
        }
        .button5, .button5:link, .button5:visited {
            width: 100%;
            height: auto;
            border-radius: 3px;
            outline: none;
            -webkit-appearance: none;
            font-weight: normal;
            line-height: 35px;
            font-weight: bold;
            color: #fff;
            font-size: 17px;
            background: #FE4B1C;
            border: none;
            border-radius: 15px;
            display: block;
            margin: 10px 0;
            padding: 0;
            float: none;
        }
        .main-invite{
            margin-top: 50px;
        }
        .top{
             margin-top: -5px;
             margin-bottom: 10px;
             width: 100%;
             background: white;
        }
       .top .adv-img{
           margin: 0 auto;
           text-align: center;
       }
       .top .foru-click{
            background: white;
       }
       .foru-click .click-btn{
           width: 50%;
           height: 80px;
           float: left;
           text-align: center;
           padding: 0;
           border: 0;
           margin: 0 auto;
           background: white;
       }
        .top .foru-click .click-btn i{
            width: 20px;
            height: 20px;
            background-repeat: no-repeat;
            display: inline-block;
            background-position: center;
            background-size: 20px;
        }
        .top .foru-click .click-btn .share-icon{
          background-image: url("/static/home/mobile/images/share.png");
        }
        .top .foru-click .click-btn .code-erwei{
            background-image: url("/static/home/mobile/images/web-code.png");
        }
       .click-btn span{
           width: 100%;
           height: 20px;
           text-align: center;
           color: red;
           font-size: 2.2rem;
           font-weight: bold;
           clear: both;
       }
        .bottom_end{
            width: 100%;
            height: auto;
            margin-top: 10px;
            margin-bottom: 10px;
            clear: both;
            background: white;
        }
        span.title-invite{
            font-size: 18px;
            margin-top: 20px;
            margin-left: 5px;
            display: inline-block;
        }
        .bottom_end p{
            padding: 5px 2px 2px 5px;
            font-size: 1.2rem;
        }

        .alik{
            padding-top: 20px;
            width: 100%;
            display: inline-block;
            text-align: center;
        }
        .clearfix{
            clear: both;
        }
        .code{
            text-align: center;
            display: none;
            position: absolute;
            top: 0px;
            left: 0px;
            right: 0px;
            bottom: 0px;
            margin: auto;
            width: 200px;
            height: 230px;
            background: white;
            overflow: hidden;
            text-align: center;
            vertical-align: middle;
        }
        .code img{
            margin-top: 2px;
            width: 180px;
            height: 180px;
        }
        .code i{
            display: inline-block;
            width: 30px;
            height: 30px;
            background: url("/static/home/mobile/images/close_wind.png") top right no-repeat;
            text-align: right;
            outline: 0;
            filter: alpha(Opacity=70);
            opacity: .7;
            -webkit-transition: opacity .2s;
            -moz-transition: opacity .2s;
            -o-transition: opacity .2s;
            transition: opacity .2s;
            background-size: 80%;
            text-align: center;
        }
        .hiddenBlack{
            position: absolute;
            top: 0;
            left: 0;
            z-index: 9999;
            background-color: #000;
            filter: alpha(Opacity=80);
            opacity: .8;
            display: none;
            height:100%;
        }
        .saveimgbtn{
            left: 0;
            right: 0;
            bottom: 0;
            display: none;
            position: fixed;
            z-index:10000;
        }

table{
width: 100%;
    box-sizing: border-box;
    padding: 0px;

}
table tbody tr{
    display: flex;
    justify-content: space-between;
    align-items: center;

    background-color: #fff;
}
table tbody tr td,table tbody tr th{
   width: 25%;
   height: 2rem;
   line-height: 2rem;
   text-align: left;
}
table tbody tr th{
font-weight: bold;

}
table tbody tr td:nth-of-type(1),table tbody tr th:nth-of-type(1){
    padding:2px;
   text-align: left;
   width: 20%;
    font-size:12px;
}
table tbody tr td:nth-of-type(2),table tbody tr th:nth-of-type(2){
   text-align: left;
   width: 20%;
    font-size:12px;
}
table tbody tr td:nth-of-type(3),table tbody tr th:nth-of-type(3){
    padding:0px;
   text-align: left;
   width: 30%;
    font-size:12px;

}
table tbody tr td:nth-of-type(4),table tbody tr th:nth-of-type(4){
    padding:0px;
   text-align: right;
   width: 25%;
   color: #ff4242;
    font-size:12px;

   padding-right: 0.9375rem;

}


  .person-list{
    width:100%;
    border-top:1px solid #f2f1f1;
    border-bottom:1px solid #f2f1f1;
	margin-top:10px;

  }
  .right-icon{
    background: url(/static/home/mobile/images/r.png) right 6px no-repeat;background-size:32px 32px;
  }
  
  .ul-table-new {
    width: 100%;
    margin: 0 auto;
}
.mui-table-view-cell>a:not(.mui-btn){line-height:26px;}
.mui-table-view {
    position: relative;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    background-color: #fff;
}
.mui-ios .mui-table-view-cell {
    line-height: 22px;
    padding: 12px;
}
.mui-navigate-right::after {
    content: ''!important;
}

   .left-icon1{
    background-image: url(/static/home/mobile/images/RewardIcon.png) !important;
  }

     .left-icon2{
    background-image: url(/static/home/mobile/images/MytasksIcon.png) !important;
  }

     .left-icon3{
    background-image: url(/static/home/mobile/images/ReportIcon.png) !important;
  }

     .left-icon4{
    background-image: url(/static/home/mobile/images/Mymessageicon.png) !important;
  }

     .left-icon5{
    background-image: url(/static/home/mobile/images/RewardIcon.png) !important;
  }

  .left-icon6{
    background-image: url(/static/home/mobile/images/ContactusIcon.png) !important;
  }

  .left-icon7{
    background-image: url(/static/home/mobile/images/tutorialsIcon.png) !important;
  }
    .left-icon8{
    background-image: url(/static/home/mobile/images/FeedbackIcon.png) !important;
  }
    .left-icon6{
    background-image: url(/static/home/mobile/images/ContactusIcon.png) !important;
  }

.icon-source-list {
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: top;
    background-repeat: no-repeat;
    background-size: 26px;
    background-position: center;
}
.litter p{font-size:12px;}

.layui-layer-demo {
    height: 70%;
    overflow: scroll;
}

.layui-layer-demo .layui-layer-title {
    text-align: center;
    background: #fff;
    color: red;
    font-size: 16px;
    font-weight: bold;
    padding: 0px;
}


.bgtp{
    width: 100%;
    min-height: 670px;
    height: 100%;
 background: url(/static/home/mobile/images/bjyqhy.jpg) no-repeat;                 /* 以父元素的百分比来设置背景图像的宽度和高度。*/
                background-size: 100% 100%;
                margin-bottom:50px;
}
.bgtp .zhanwei{
    width: 100%;
    height: 380px;
}
.bgtp .button{
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}
.bgtp .button1{
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}
.bgtp .button2{
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}
.bgtp .buttons{
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    
    padding: 0 10px;
}
.bgtp .buttons .button3{
  width: 100%;
    height: 150px;
    border-radius: 5px;
    text-align: center;
    display: flex;
    padding: 0 3px;
}
.bgtp .button a{
  background: #1c1d21;
    display: inline-block;
    width: 80%;
    height: 40px;
    line-height: 40px;
    border-radius: 20px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}
.bgtp .button1 .jlsm{
  background: #1c1d21;
    display: inline-block;
    width: 42%;
    height: 40px;
    line-height: 40px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin: 0 15px;
}
.bgtp .button1 .wdtd{
  background: #1c1d21;
    display: inline-block;
    width: 42%;
    height: 40px;
    line-height: 40px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin: 0 15px;
}
.bgtp .button2 a{
    display: inline-block;
    width: 92%;
    height: 50px;
    line-height: 50px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin: 0 15px;
}
.bgtp .button2 a img{
   width: 100%;
    height: 100%;
}
.bgtp .button3 a{
    display: inline-flex;
    border-radius: 5px;
    width: 33%;
    margin: 5px;
    font-weight: bold;
    flex-direction: row;
    justify-content: space-around;
    border: 0px solid #ab9999;
}
.bgtp .button3 a img{
   width: 100%;
    height: 100%;
}
#footer-bar {
    width: 100%;
    background-color: #000;
    position: fixed;
    bottom: 0px;
    height: 54px;
    padding: 0px 0 0 0;
    margin: 0px;
    text-align: center;
    border-top: 1px solid #504c4c;
    z-index: 999;
}
#footer-bar li b {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #fff;
    padding-top: 2px;
}
a, a:hover, a:active, a:visited, a:link, a:focus {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    background: none;
    text-decoration: none;
}
#footer-bar li b {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #fff;
    padding-top: 2px;
    margin-top:-6px;
}
    </style>
</head>

<body >
    <div style="color:#fff;background:none"  class="site-header header-fixed">
            <a onclick="history.back()" class="back" style="background:none;margin-top:-10px;" >
                <img style="height:24px;" src='/static/home/mobile/images/return2.png'>
            </a>
            <div class="tit-name" style="color:#fff;">
                     <a href="#shuoming">
                    <span  style="border-radius:5px;text-align:right;color:#fff;">邀请规则</span>
                    </a>
            </div>
            
        </div>
<style>
    #footer-bar li {
    width: 25%;
    float: left;
    
}
#footer-bar{background:#0d0d0d}
</style>

<footer id="footer-bar" lang="<?php echo $controller; ?>">
      <ul id="tabbar">
      <li><a href="/">
      <img src="/static/home/mobile/images/0011<?php if(in_array($controller,array('index'))): ?>_on<?php endif; ?>.png">
      <b>首页</b></a></li>
      <li><a href="/home/task/category.html"><img src="/static/home/mobile/images/0022<?php if(in_array($controller,array('task'))): ?>_on<?php endif; ?>.png"><b>大厅</b></a></li>

      <li><a href="/home/invite.html"><img src="/static/home/mobile/images/0044<?php if(in_array($controller,array('connection'))): ?>_on<?php endif; ?>.png"><b>推广</b></a></td>
      <li><a href="/home/account.html"><img src="/static/home/mobile/images/0055<?php if(in_array($controller,array('account','charge','fans','vip','feedback','feedback','notice','help'))): ?>_on<?php endif; ?>.png"><b>我的</b></a></li>
      </ul>
</footer>
        
        <div data-v-c04d7c44="" class="logs" style="background:#0f0f0f;border-radius:6px;width:100%;padding:0;padding-top:66px;">
                <div data-v-c04d7c44="" class="title" style="background:#1c1d21;font-size:18px;font-weight:bold;border-top-left-radius:6px;border-top-right-radius:6px;color:#fff;height:50px;line-height: 50px;text-align: center;width:90%;margin-left:5%;border-radius:8px;">
           
	                 <div style="float:left;margin-left:10px;">累计分成奖励</div>
	                 
	                 <div style="float:right;margin-right:10px;"><?php echo $total_money; ?></div>
                </div>
                 <input id="hides" type="text" value="http://yindao.sqbkw.cn/?i=<?php echo $member['uid']; ?>" style="position: absolute;

   top: -9999px;

   left: -9999px;">
                 <div data-v-c04d7c44="" class="mains" style="margin-top:10px;width:90%;margin-left:5%;color:#fff;padding-bottom:10px;">
                        <div style="display:flex;justify-content: space-between;" class="more">
                              <div  style="width:33%;float:left;border-radius:8px 0 0 8px;background:#1c1d21;">
                                  <div style="">
                                 
								<div onclick="location.href='/home/invite/silver.html'"  style="font-size:14px;height:30px;line-height:30px;text-align: center;padding:0 5px;">
                                  		<div style="float:left;margin-right:10px;">
                                  			
                                                一级分成
                                  		</div>
                                  		<div style="float:right;">
                                  			<?php echo $one_rebate; ?>%
                                  		</div>
                                 </div>
                                 
                                  <div onclick="location.href='/home/invite/silver.html'"  style="font-size:14px;height:30px;line-height:30px;text-align: center;padding:0 5px;">
                                  		<div style="float:left;margin-right:10px;">
                                  			
                                                一级人数
                                  		</div>
                                  		<div style="float:right;">
                                  			<?php echo $count; ?>
                                  		</div>
                                 </div>

					



                                </div>


                          </div>
                           <div  style="width:33%;background:#1c1d21;">
                                  <div style="">
                                 
								<div onclick="location.href='/home/invite/silver/type/2'"  style="font-size:14px;height:30px;line-height:30px;text-align: center;padding:0 5px;">
                                  		<div style="float:left;margin-right:10px;">
                                  			
                                                二级分成
                                  		</div>
                                  		<div style="float:right;">
                                  			<?php echo $two_rebate; ?>%
                                  		</div>
                                 </div>
                                 
                                  <div onclick="location.href='/home/invite/silver/type/2'"  style="font-size:14px;height:30px;line-height:30px;text-align: center;padding:0 5px;">
                                  		<div style="float:left;margin-right:10px;">
                                  			
                                                二级人数
                                  		</div>
                                  		<div style="float:right;">
                                  			<?php echo $grandson; ?>
                                  		</div>
                                 </div>
                                 
                                 
                                 
                                </div>
                          </div>
                           <div  style="width:33%;border-radius:0 8px 8px 0;background:#1c1d21;">
                                  <div style="">
                                 
								<div onclick="location.href='/home/invite/silver/type/3'"  style="font-size:14px;height:30px;line-height:30px;text-align: center;padding:0 5px;">
                                  		<div style="float:left;margin-right:10px;">
                                  			
                                                三级分成
                                  		</div>
                                  		<div style="float:right;">
                                  			<?php echo $three_rebate; ?>%
                                  		</div>
                                 </div>
                                 
                                  <div onclick="location.href='/home/invite/silver/type/3'"  style="font-size:14px;height:30px;line-height:30px;text-align: center;padding:0 5px;">
                                  		<div style="float:left;margin-right:10px;">
                                  			
                                                三级人数
                                  		</div>
                                  		<div style="float:right;">
                                  			<?php echo $parent3; ?>
                                  		</div>
                                 </div>
                                 
                                 
                                 
                                </div>
                          </div>

                  </div>
          </div>


</div>
       <div data-v-c04d7c44="" class="mains" style="background:#333;padding:10px;width:90%;margin:auto;border-radius:8px;">
                        <div style="display:flex;justify-content: space-between;border-bottom:1px solid #eee;padding-bottom:10px;display:none;" class="more">
                              <div style="width:50%;border-right:1px solid #eee;">
                                  <div style="">
                                  <div onclick="location.href='/home/invite/poster.html'" style="font-weight:bold;font-size:18px;height:30px;line-height:30px;width:100%;text-align: center;color:red;">
                                    二维码推广

                                  </div>
                                  <div onclick="location.href='/home/invite/poster.html'" style="font-size:14px;height:30px;line-height:30px;width:100%;text-align: center;">
                                            生成二维码
                                                </div>

            <div class="click-btn clipboards" style="display:none;">

            	<div id="copybtn" onclick="$('#menu').show()" data-copy="我玩了很多天了，每天收入不算多，四五十元，就当赚点零花钱。提现速度快，几分钟内就能到账。推荐想赚小钱的朋友进来玩玩：http://yindao.sqbkw.cn/?i=1" style="width:80%;text-align:center;margin:20px 10%;color: #ffffff;background: #f96a22;height:40px;line-height:40px;border:none;border-radius:20px;font-size: 18px;" class="button duihuan">
                 立即邀请
               </div>
            </div>

                                </div>


                          </div>

                           <div style="width:50%;" class="jhfdsoier">
                                  <div style="">
                                  <div style="font-weight:bold;font-size:18px;height:30px;line-height:30px;width:100%;text-align: center;color:red;">
                                <!--   2.96元  -->
                                	立即收徒

                                  </div>
                                  <div style="font-size:14px;height:30px;line-height:30px;width:100%;text-align: center;">
                                             分享给好友
                                </div>
                                            <div onclick="location.href='/home/invite/poster.html'" style="width:80%;text-align:center;margin:20px 10%;color: #ffffff;background: #f96a22;height:40px;line-height:40px;border:none;border-radius:20px;font-size: 18px;display:none;" class="button duihuan">
                                             二维码推广
                                           </div>
                                </div>
                          </div>

                  </div>
                  
                  
		          <div class="litter" style="width:100%;font-size:12px;line-height:25px;">
		          		<p>你能<span style="color:red;font-weight:bold;">永久获得</span>一级、二级、三级好友分成,多重奖励 <span style="color:red;font-weight:bold;">上不封顶</span></p>
		          		<p>1：一级完成任务奖励你<span style="color:red;font-weight:bold;">7%</span>、二级奖励你<span style="color:red;font-weight:bold;">5%</span>、三级奖励你<span style="color:red;font-weight:bold;">3%</span></p>
		          		
		          		<p>2：一级首次完成任务奖励你<span style="color:red;font-weight:bold;">1元</span>、二级奖励你<span style="color:red;font-weight:bold;">0.5元</span></p>
		          		<p>3：一级完成所有新手任务，奖励你<span style="color:red;font-weight:bold;">1元</span>、二级奖励你<span style="color:red;font-weight:bold;">0.5元</span></p>
		          		<p>4：一级完成提现时，奖励你<span style="color:red;font-weight:bold;">2%</span>分成
		          		二级奖励你<span style="color:red;font-weight:bold;">1%</span>分成</p>
		          	
		          </div>
          </div>


 <script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
<script>

    function set_type(){
        $('.down').toggle();
        $('.up').toggle();
    }
    </script>
<script src="/static/home/mobile/js/qrcode/jquery.qrcode.min.js"></script>
<!--<style>
    #footer-bar li {
    width: 25%;
    float: left;
    
}
#footer-bar{background:#0d0d0d}
</style>

<footer id="footer-bar" lang="<?php echo $controller; ?>">
      <ul id="tabbar">
      <li><a href="/">
      <img src="/static/home/mobile/images/0011<?php if(in_array($controller,array('index'))): ?>_on<?php endif; ?>.png">
      <b>首页</b></a></li>
      <li><a href="/home/task/category.html"><img src="/static/home/mobile/images/0022<?php if(in_array($controller,array('task'))): ?>_on<?php endif; ?>.png"><b>大厅</b></a></li>

      <li><a href="/home/invite.html"><img src="/static/home/mobile/images/0044<?php if(in_array($controller,array('connection'))): ?>_on<?php endif; ?>.png"><b>推广</b></a></td>
      <li><a href="/home/account.html"><img src="/static/home/mobile/images/0055<?php if(in_array($controller,array('account','charge','fans','vip','feedback','feedback','notice','help'))): ?>_on<?php endif; ?>.png"><b>我的</b></a></li>
      </ul>
</footer>-->
<script>
var page=0;
var qrurl = "<?php echo $linkregis; ?>?i=<?php echo $member['uid']; ?>";
  $('#qrcode').qrcode({
    text: qrurl,
    render: "canvas",
    width : 150,
    height : 150
   });
var canvas = $('#qrcode').find("canvas")[0];
            var base64 = canvas.toDataURL('image/jpeg');

            $('#myimg').attr('src',base64);


    $(".code i").click(function () {
        $("#code").hide();
        $(".van-overlay").hide();
    });
    $(".van-overlay").css("display","none");


    $(".click-btn").eq(3).click(function () {
        $(".van-overlay").show();
        $("#code").show();
    });
    $(".van-overlay").click(function () {
        $(this).hide();
        $("#code").hide();
    });
    function getBase64Image(img) {
        var canvas = document.createElement("canvas");
        canvas.width = img.width;
        canvas.height = img.height;
        var ctx = canvas.getContext("2d");
        ctx.drawImage(img, 0, 0, img.width, img.height);
        var dataURL = canvas.toDataURL("image/png");
        return dataURL
        // return dataURL.replace("data:image/png;base64,", "");
    }
    $("#code div").on({
        touchstart: function(e) {
            var x=0;
            // 长按事件触发
            timeOutEvent = setTimeout(function() {
                timeOutEvent = 0;


                $("#saveimgbtn").off("click").click(function(event){
                    event.stopPropagation();
                    lbuilder.Native.saveImage(base64, function(message){
                        alert("图片保存成功！");
                        // message('图片保存成功','','sucess');
                        $(".hiddenBlack").hide();
                        $(".saveimgbtn").hide();
                        $("#code").hide();
                        $(".van-overlay").hide();
                    }, function(err){
                        alert("图片保存失败！ "+err);
                    });
                });

                //saveimg(src);
            }, 800);
            //长按400毫秒
            //e.preventDefault();
        },
        touchmove: function() {
            //clearTimeout(timeOutEvent);
            //timeOutEvent = 0;
        },
        touchend: function() {
            clearTimeout(timeOutEvent);
            //return false;
        }
    });
    $(".hiddenBlack").on("click",function(){

        $(this).hide();
        $(".saveimgbtn").hide();
        $("#code").hide();
        $(".van-overlay").hide();

    });
    $("#saveimgcancel").on("click",function(){

        $(".hiddenBlack").hide();
        $(".saveimgbtn").hide();
        $("#code").hide();
        $(".van-overlay").hide();
    });

    window._bd_share_config = {
        common : {
            bdText : '我玩了很多天了，每天收入不算多，四五十元，就当赚点零花钱。提现速度快，几分钟内就能到账。推荐想赚小钱的朋友进来玩玩：<?php echo $linkregis; ?>?i=<?php echo $member['uid']; ?>',
            bdDesc : '我玩了很多天了，每天收入不算多，四五十元，就当赚点零花钱。提现速度快，几分钟内就能到账。推荐想赚小钱的朋友进来玩玩：<?php echo $linkregis; ?>?i=<?php echo $member['uid']; ?>',
            bdUrl : '<?php echo $linkregis; ?>?i=<?php echo $member['uid']; ?>',
            bdPic : ''
        },
        share : [{
            "bdSize" : 16
        }],
        image : [{
            viewType : 'list',
            viewPos : 'top',
            viewColor : 'black',
            viewSize : '16',
            viewList : ['weixin','qzone','tsina','huaban','tqq','renren']
        }]
    }
   // with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>

<script>
mui('.tophref').on('tap','a',function(){document.location.href=this.href;});
$(document).ready(function(){
$('.nav-footer a').each(function(){
if($($(this))[0].href==String(window.location))
$(this).addClass('mui-active');
});
})

function bh_msg_tips(msg) {
    var oMask = document.createElement("div");
    oMask.id = "bh_msg_lay";
    oMask.style.position = "fixed";
    oMask.style.left = "0";
    oMask.style.top = "50%";
    oMask.style.zIndex = "100";
    oMask.style.textAlign = "center";
    oMask.style.width = "100%";
    oMask.innerHTML = "<span style='background: rgba(0, 0, 0, 0.65);color: #fff;padding: 10px 15px;border-radius: 3px; font-size: 14px;'>" + msg
    + "</span>"; document.body.appendChild(oMask);
setTimeout(function () {
    $("#bh_msg_lay").remove();
}, 2000);
}
</script>
<script>
    function getNextPage(){
        if(page == 10){
            layer.msg('已到最后一页');
            return;
        }
        page=page+1
             Common.loading.show();
                $.post(
                    '/home/invite/reward_ajax',
                    {
                      page: page,
                    },
                    function (ret) {
             Common.loading.hide();
                        //console.log(ret)
                        $("#this_month").html(ret)
                    },'json'
                );
    }
    getNextPage()
    function getUpPage(){
        if(page == 1){
            layer.msg('已到首页');
            return;
        }
        page=page-1
             Common.loading.show();
                $.post(
                    '/home/invite/reward_ajax',
                    {
                      page: page,
                    },
                    function (ret) {
             Common.loading.hide();
                        console.log(ret)
                        $("#this_month").html(ret)
                    },'json'
                );
    }

    function show_erweima(){
        $(".van-overlay").show();
        $("#code").show();
    }
    $('.jhfdsoier').click(function(){
        var errrr=document.getElementById('hides');
    	    errrr.select();
            document.execCommand("Copy");
            layer.msg('复制推广链接成功');
    })
    
    function share(val){

    	
    	if(val == 4){
    	    
    		jsBridge.setClipboardText("http://zz.99dybk.com/?i=<?php echo $member['uid']; ?>");
    		layer.msg('复制推广链接成功');
    		return;
    	}


   	jsBridge.share({
		    //分享到，0 微信朋友圈，1 微信好友，2 QQ好友，3 QQ空间；未指定则弹出分享菜单
		    to    : val,
		    //标题，未指定则为当前页面 title 标题
		    title : "加入闲猫，动动手指领现金！",
		    //链接，未指定则为当前页面链接
		    link  : "http://zz.99dybk.com/?i=<?php echo $member['uid']; ?>",
		    //图标，未指定则为 App 图标
		    imgUrl: "https://www.niurenzhuan.xyz/static/home/mobile/login/img3.jpg",
		    //描述，如未指定，App 会尝试抓取页面 meta description content，<meta name="description" content="页面描述..." />
		    //均无描述内容则显示链接
		    desc: "送你钱，不抢就没了！" 
		}, function(succ) {
		    if(succ){
		    	  $.post(
                    '/home/invite/share_reward',
                    {},
                    function (ret) {
            		
                      console.log(ret)
                    },'json'
                );
		    }
		    alert(succ ? "分享成功" : "分享失败或取消了分享");
		    
		});
    }
</script>

<script>
var content=`

        <div data-v-c04d7c44="" class="logs" style="background:#fff;border-radius:6px;margin:0 10%;width:80%;padding:0;">
          
                 <div data-v-c04d7c44="" class="mains" style="border-bottom-left-radius:6px;border-bottom-right-radius:6px;">
                        <div data-v-c04d7c44="" style="color:#000;text-indent: 20px;line-height: 26px;padding:10px;font-size: 14px;padding-top:10px;" class="more van-hairline--top">
				
						<p style="color:red;font-weight:bold;">排行榜说明</p>
						<p>
                        1、推广排行榜是对活动期间2020年5月6日-2020年6月15日期间新增的好友所获得提成奖励（提现奖励不算）、进行排名，对前100名玩家进行奖励。
						</p>
                        
						<p>
							
						2、若有违规、刷号行为，将扣除好友给推广人带来的金额，严重者取消活动资格。
						</p>
						<p>
						3、推广排行榜奖励将在活动结束后3工作日内发放。
							
						</p>
						<p>
							
						4、本规则自2020年5月6日开始生效。
						</p>


                          </div>
                  </div>
          </div>


`


	     $('.guize').click(function () {
	     	
              layer.open({
                    type: 1,
                    title:'&nbsp;&nbsp;规则',
                    skin: 'layui-layer-demo', //样式类名
                    closeBtn: 0, //不显示关闭按钮
                    anim: 2,
                    shadeClose: true, //开启遮罩关闭
                    content:content
                  });
	     	
	     })
</script>

 </body>
</html>